package com.tfd.blog.exception;

/**
 * @author TangFD@HF 2019/5/8
 */
public enum BlogExceptionCode {

    ENTITY_NOT_EXIST("实体数据不存在"),
    SYSTEM_ERROR("系统异常"),
    ILLEGAL_ARGUMENT("非法参数");

    private String message;

    BlogExceptionCode(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "[BlogExceptionCode : " +
                "name='" + name() + '\'' +
                "message='" + message + '\'' +
                ']';
    }
}
